package interpreter;

/**
 * 终结表达式
 */
public class NumberExp implements IExpression {
    private int value;

    public NumberExp(String value) {
        this.value = Integer.parseInt(value);
    }

    @Override
    public int interpret() {
        return this.value;
    }
}
